package com.base.pig.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Keafmd
 *
 * @ClassName: Configbean
 * @Description:
 * @author: 牛哄哄的柯南
 * @date: 2021-07-21 15:40
 */
@Configuration
public class ConfigBean { //@Configuration 相当于 spring中的 application.xml

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}